package com.ghj.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.io.Serializable;

@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "userloginlog")
public class Userloginlog implements Serializable {
    /**
    * 主键id
    */
    @TableId
    @TableField(value = "login_id")
    private String loginId;
    /**
    * 用户表id
    */
    @TableField(value = "user_id")
    private String userId;
    /**
    * 登录时间
    */
    @TableField(fill  = FieldFill.INSERT)
    private Date loginTime;
    /**
    * 登录ip
    */
    @TableField(value = "login_ip")
    private String loginIp;


}